package com.juren.jrdemo.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhangtao
 * @since 2018-12-27
 */
@Data
public class User extends Model<User> {

    private static final long serialVersionUID = 1L;

    private Long id;

    private String username;

    private String password;

    private String name;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "User{" +
        "id=" + id +
        ", username=" + username +
        ", password=" + password +
        ", name=" + name +
        "}";
    }
}
